<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 01:16:57
 * @LastEditTime: 2023-08-13 16:50:52
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Models;

use App\Traits\AutoCodeTrait;

class MpcMoisture extends BaseModel
    {
    use AutoCodeTrait;
    public $timestamps = true;
    public $table = "sys_mpc_moisture";
    protected $guarded = [];
    public function details()
        {
        return $this->hasMany(MpcMoistureDetail::class, "main_id");
        }
    public function purchase_storage()
        {
        return $this->belongsTo(PurchaseStorageDetails::class);
        }
    }